package com.yfp.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.device.domain.OrderDetailWait;
import com.yfp.device.domain.dto.OrderDetailWaitDTO;

import java.util.List;

/**
 *
 * @description 针对表【order_detail_wait(订单预计排队时间)】的数据库操作Service
 * @createDate 2024-09-03 11:52:23
 */
public interface OrderDetailWaitService extends IService<OrderDetailWait> {

    /**
     * 新增订单预计排队时间
     *
     * @param orderDetailWaitDTO
     */
    void saveQueueTime(List<OrderDetailWaitDTO> orderDetailWaitDTO);

    /**
     * 根据机器id和订单详情id更新预计排队时间
     *
     * @param updateList
     */
    void updateByMachineIdAndOrderDetailId(List<OrderDetailWait> updateList);

    /**
     * 批量插入订单预计排队时间
     *
     * @param insertList
     */
    void insertBatch(List<OrderDetailWait> insertList);

    /**
     * 根据订单详情查询
     * @param orderDetailId
     * @return
     */
    OrderDetailWait findByOrderDetailId(String orderDetailId);

    /**
     * 修改状态
     * @param orderDetailId
     * @param status
     */
    void updateStatusByOrderDetailId(String orderDetailId, Integer status);

}
